<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/18 0018
 * Time: 下午 7:24
 */

namespace app\controller;


use think\facade\Event;

class TestEvent
{

    public function __construct()
    {
//        Event::listen("hi",function($param){
//
//            echo "hi listen ".$param;
//        });
    }

    function index(){

        //Event::trigger("test","bbb");
        event("UserLogout");
        return "ok";
    }
}